import api from "./api";
import request from "../../base/utils/request";

interface updateInfo {
  headPic?: string;
  nickName?: string;
  email?: string;
  phoneNumber?: string;
  signature?: string;
  hobbies?: string;
}
export const update = (data:updateInfo) => {
  return request(api.userInfoUpdate, {
    params: {},
    data,
  });
};

export const getUserInfo = ()=>{
    return request(api.userInfoGet,{
        params:{},
    })
}
